<?php

$conn = mysql_connect('cash2uca.ipagemysql.com', 'cash2uca', 'actW3740!@#$'); 
	if (!$conn) { 
	    die('Could not connect: ' . mysql_error()); 
		} 

mysql_select_db(cash2uca);
$username = trim(strtolower($_POST['email']));

$username = mysql_escape_string($username);


$query = "SELECT Email FROM Profiles WHERE Email = '$username' LIMIT 1";

$result = mysql_query($query,$conn);
$num = mysql_num_rows($result);


echo $num;

mysql_close();

?>
